var mineAccounts;

$(function () {
    mineAccounts = new Vue({
        el:'#mineController',
        data:{
            nav:_mineNav,
            money:{},
            logs:[],
            type:1
        },
        watch:{
            type:function () {
                this.loadData();
            }
        },
        methods:{
            loadMoney:function () {
                var that = this;
                sy.postApi("/api/userInfo/getUserBalance",{},function (data) {
                    that.money = data;
                })
            },
            loadData:function () {
                var that = this;
                sy.postApi('/api/userInfo/getPayLog',{type:that.type},function (data) {
                    that.logs = data;
                })
            }
        },
        created:function () {
            this.loadMoney();
            this.loadData();
        },
        mounted:function () {
            //充值记录列表滚动
            showScroll('.record_list')
        }
    });
});